package com.dk.exception;

import lombok.Getter;

/**
 * 异常处理类
 *
 * @author: A11181121050450
 * @date: 2020-04-20 14:44
 */
@Getter
public class SimpleException extends RuntimeException {
    private String code="-1";
    public SimpleException(String code,String msg,Throwable cause){
        super(msg, cause);
        this.code = code;
    }
    public SimpleException(String msg,Throwable cause){
        super(msg, cause);
    }
    public SimpleException(String code,String msg){
        super(msg);
        this.code = code;
    }
    public SimpleException(String msg){
        super(msg);
    }
}
